package com.vanvalt.payhui.util.constat;

import java.util.HashMap;
import java.util.Map;

public class Constant {
	
	/** 状态：激活. */
	public final static int		STATE_ACTIVATE							= 1;
	/** 状态：冻结，隐藏. */
	public final static int		STATE_FROZEN							= 0;
	
	/** 状态：1,表示布尔值 TRUE、YES. */
	public final static int		STATE_YES								= 1;
	/** 状态：0,表示布尔值 FALSE、NO. */
	public final static int		STATE_NO								= 0;
	
	/** |是一个文件在服务器存储的文件和本地文件名称的分隔符. */
	public final static String	SPLIT_FILE_NAME							= "|";
	/** :是两个文件的分隔符. */
	public final static String	SPLIT_FILE								= ":";
	/** :是两个文件的分隔符. */
	public final static String	SPLIT_CONTENT							= ";";
	/** 空格' '或逗号','是两个标签的分隔符. */
	public final static String	SPLIT_TAG								= " ,，";
	/** 下标0，索引0 */
	public final static int 	INDEX_ZORE 								= 0;
	public final static String 	UTF_8									= "utf-8";
	/**分页的每页数量**/
	public final static int PAGE_SIZE                                   = 12;
	/**是否显示导航**/
    public final static String  isVisible                               = "1";
    /**移动端可见**/
    public final static String MOBILE_VISIBLE							= "1";
    /**移动端不可见**/
    public final static String MOBILE_INVISIBLE							= "0";
    
    public static final int PAGE_SIZE_NINE 								= 9;
    
    /** 文章状态-推荐**/
    public static final String ARTICLE_STATE_RECOMMEND					= "1";
    /** 文章状态-正常**/
    public static final String ARTICLE_STATE_NORMAL						= "0";
    public static final int ARTICLE_APP_PAGE_SIZE						= 10;
    /** 文章默认偏移值**/
    public static final int ARTICLE_OFFSET_DEFAULT						= 0;
    /** APP推荐文章数量**/
    public static final int ARTICLE_APP_RECOMMEND_SIZE					= 4;
    
    /**
	 * 删除标记（0：正常；1：删除；2：审核；）
	 */
	public static final String DEL_FLAG_NORMAL 							= "0";
	public static final String DEL_FLAG_DELETE 							= "1";
	public static final String DEL_FLAG_AUDIT 							= "2";
	
    /**分润平台**/
    public static final String PROFIT_PLATFORM							= "profit_platform";
    
    /**Banner图类型**/
    public static final String BANNER_TYPE_ALL							= "0";
    public static final String BANNER_TYPE_PC							= "1";
    public static final String BANNER_TYPE_MOBILE						= "2";
    
    /**POS机类型**/
    public static final String POS_TYPE_BIG								= "2";
    public static final String POS_TYPE_SMALL							= "1";
    
    /**DES加密Key**/
    public static final String PASSWORD_DES_KEY							= "kEHrDooxWHCWtfeSxvDvgqZq";
    
    /**申请提交状态**/
    public static final String APPLY_STATUS_PENDING						= "0";
    public static final String APPLY_STATUS_PASSED						= "1";
    public static final String APPLY_STATUS_REJECT						= "2";
    
    /**用户类型**/
    public static final String USER_TYPE_COMMON 						= "3";
    public static final String USER_TYPE_MANAGER	 					= "2";
    public static final String USER_TYPE_ADMIN 							= "1";
    
    /**默认用户工号**/
    public static final String USER_NO_DEFAULT							= "000000";
    
    /**用户角色-默认**/
    public static final String USER_ROLE_DEFAULT						= "d";
    
    /**短信默认区域代码**/
    public static final String SMS_DEFAULT_ZONE							= "86";
    
    /**短信息验证码校验**/
 	public static final Map<Integer,Object> SMS_VERIFY_CODE_STATUS_MAP = new HashMap<Integer,Object>();
 	
 	static {
 		// 源自 http://wiki.mob.com/webapi2-0/ and http://wiki.mob.com/smssdk2-0-web-api/
 		SMS_VERIFY_CODE_STATUS_MAP.put(200, "验证成功");
 		SMS_VERIFY_CODE_STATUS_MAP.put(405, "AppKey为空");
 		SMS_VERIFY_CODE_STATUS_MAP.put(406, "AppKey无效");
 		SMS_VERIFY_CODE_STATUS_MAP.put(456, "国家代码或手机号码为空");
 		SMS_VERIFY_CODE_STATUS_MAP.put(457, "手机号码格式错误");
 		SMS_VERIFY_CODE_STATUS_MAP.put(458, "手机号码在黑名单中");
 		SMS_VERIFY_CODE_STATUS_MAP.put(463, "手机号码超出当天发送短信的限额");
 		SMS_VERIFY_CODE_STATUS_MAP.put(466, "请求校验的验证码为空");
 		SMS_VERIFY_CODE_STATUS_MAP.put(467, "请求校验验证码频繁（5分钟内同一个appkey的同一个号码最多只能校验三次）");
 		SMS_VERIFY_CODE_STATUS_MAP.put(468, "验证码错误");
 		SMS_VERIFY_CODE_STATUS_MAP.put(469, "没有打开发送Http-api的开关");
 		SMS_VERIFY_CODE_STATUS_MAP.put(470, "账户短信余额不足");
 		SMS_VERIFY_CODE_STATUS_MAP.put(471, "请求ip和绑定ip不符");
 		SMS_VERIFY_CODE_STATUS_MAP.put(474, "没有打开服务端验证开关");
 		SMS_VERIFY_CODE_STATUS_MAP.put(477, "当前手机号码在SMSSDK平台内每天最多可发送短信10条，包括客户端发送和WebApi发送");
 		SMS_VERIFY_CODE_STATUS_MAP.put(478, "当前手机号码在当前应用下12小时内最多可发送文本验证码5条.");
 	}
 	
 	/**不同平台对应的AppKey**/
 	public static final Map<String,Object> APP_KEY_MAP = new HashMap<String,Object>();
 	
 	static {
 		// 源自 http://dashboard.mob.com/Sms/#/
 		APP_KEY_MAP.put("1", "1530eb4fd1549"); // Android
 		APP_KEY_MAP.put("2", "151fd6f77d8b3"); // IOS
 	}
	
}
